import { NavBar } from 'antd-mobile'
import { Button } from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
function Index() {
  const nav=useNavigate()
  
  const handleBack = () => {
    nav(-1) // 返回上一个页面
  }

  return (
    <div style={{backgroundColor:'#f2f2f2',width:'100vw',height:'100vh'}}>
      <NavBar onBack={handleBack} style={{width:'100vw',backgroundColor:'#fff'}}>收货地址</NavBar>
      
      <div style={{position:'absolute',marginTop:'740px',width:'100vw',height:'15vh',backgroundColor:'#fff'}}>
        <Button block color='primary' size='large' onClick={()=>nav('/add')}>
       <span style={{fontSize:'30px'}}>+</span> 添加收货地址
        </Button>
      </div>
    </div>
  )
}

export default Index
